<?php

class Controller_Account extends Controller_Website
{

    public function before() {
        parent::before();
        $this->section = 'account';
    }

	public function actionIndex()
	{

		$this->template->title = $this->settings['title'];
		$this->template->content = new View('index/index');
	}
    public function actionOut()
    {
        {
            if (isset($_SESSION['identity'])) {
                unset($_SESSION['identity']);
            }
            session_regenerate_id(true);
        }
        $this->response->redirect('/');
    }

}